package com.kbbywyclient.di.module;

import com.kbbywyclient.di.scope.ActivityScope;
import com.kbbywyclient.ui.contarct.MyBusinessConContarct;

import dagger.Module;
import dagger.Provides;

/**
 * Created by FHW
 * on 2017/3/21
 */
@Module
public class MyBusinessConModule {
    private MyBusinessConContarct.View view;

    //构造方法传递View 接口的实例化对象
    public MyBusinessConModule(MyBusinessConContarct.View view) {
        this.view = view;
    }

    //在DI容器中提供View接口的实例化对象
    @ActivityScope
    @Provides
    public MyBusinessConContarct.View providerView() {
        return view;
    }
}
